<%--
  Created by IntelliJ IDEA.
  User: slaffka
  Date: 27.05.12
  Time: 19:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:choose>
    <c:when test="${not empty findOrder}">
        <table class="table-center find-template" >
            <tr>
                <th><div>Наименование книги</div></th>
                <th><div>цена</div></th>
                <th><div>количество</div></th>
            </tr>
            <c:forEach var="book" items="${findOrder.bookMap}">
                <tr>
                    <td>
                        <div>${book.key.name}</div>
                    </td>
                    <td>
                        <div class="number">${book.key.price}</div>
                    </td>
                    <td>
                        <div class="number">${book.value}</div>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </c:when>
    <c:otherwise>
        заказ с номером ${findOrderId} не найден
    </c:otherwise>
</c:choose>

